import {Entity, PrimaryGeneratedColumn, Column, BaseEntity, CreateDateColumn} from "typeorm";

@Entity()
export class GoodsImg extends BaseEntity{
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:64})
    gcode: string;

    @Column('text')
    link: string;

    @Column({unsigned:true,default:1})
    index:number;
    
    @CreateDateColumn()
    createtime: Date;


}